/*
 * Copyright 2009 The Brui Team
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at 
 *
 * 	http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License. 
 */

package com.googlecode.brui.beans;

import com.googlecode.brui.annotation.TranslationKey;

/**
 * Simple bean used for testing.
 */
public final class Car {

	public static final String MAKE = "make";

	public static final String MODEL = "model";

	public static final String YEAR = "year";

	public static final String POWER = "power";

	private String make;

	private String model;

	private String year;

	@TranslationKey("power.kilowatts")
	private int power;

	public Car() {
	}

	/**
	 * Create a new car.
	 * 
	 * @param make the name of the car's manufacturer brand.
	 * @param model the model name of the car.
	 * @param year the year the car was manufactured.
	 * @param power the power output of the car's engine in kilowatts.
	 */
	public Car(final String make, final String model, final String year, final int power) {
		this.make = make;
		this.model = model;
		this.year = year;
		this.power = power;
	}

	public String getMake() {
		return make;
	}

	public String getModel() {
		return model;
	}

	public String getYear() {
		return year;
	}

	public int getPower() {
		return power;
	}

	public void setMake(final String make) {
		this.make = make;
	}

	public void setModel(final String model) {
		this.model = model;
	}

	public void setYear(final String year) {
		this.year = year;
	}

	public void setPower(final int power) {
		this.power = power;
	}
}